import request from '@/utils/HttpRequest'

/**
 *用户文章收藏
 */
export default {

    getCollectArticleInfoByMemberId(memberId) {
        return request({
            url: '/gmmallmember/membercollectarticle/getCollectCount/' + memberId,
            method: 'get'
        })
    },

    collectArticleInfo(memberArticleEntity) {
        return request({
            url: '/gmmallmember/membercollectarticle/collectArticle',
            method: 'post',
            data: memberArticleEntity
        })
    },

    getMemberCollectInfo(id) {
        return request({
            url: '/gmmallmember/membercollectarticle/getCollectMember/' + id,
            method: 'get'
        })
    },

    isCollectArticleInfo(articleId, memberId) {
        return request({
            url: '/gmmallmember/membercollectarticle/isCollectArticle/' + articleId + '/' + memberId,
            method: 'get'
        })
    }

}